import { logger } from '../log/logger';
import { ipcMain } from 'electron';
import windowInit from './window';

export default function (): void {
    windowInit();
    ipcMain.handle('log', (_, type = 'info', message = '') => {
        logger.log({
            level: type,
            message: message
        });
    });
}